package org.example.bargaining.controller;

import org.example.bargaining.service.BargainingService;
import org.example.model.vo.h5.BargainingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/bargaining")
public class BargainingController {
    @Autowired
    private BargainingService bargainingService;
    @RequestMapping("/list")
    public List<BargainingVo> selectAll() {
        return bargainingService.selectAll();
    }
}
